package com.suoluo.zenadmin.service;

public class ServiceException extends RuntimeException{

	private String resultCode;
	
	private String resultMsg;

	public ServiceException() {
		super();
	}

	public ServiceException(String resultCode,String message, Throwable cause) {
		super(message, cause);
		this.resultCode = resultCode;
		this.resultMsg = message;
	}

	public ServiceException(String resultCode,String message) {
		super(message);
		this.resultCode = resultCode;
		this.resultMsg = message;
	}

	public ServiceException(String resultCode,Throwable cause) {
		super(cause);
		this.resultCode = resultCode;
		this.resultMsg = cause.getMessage();
	}

	public String getResultCode() {
		return resultCode;
	}

	public void setResultCode(String resultCode) {
		this.resultCode = resultCode;
	}

	public String getResultMsg() {
		return resultMsg;
	}

	public void setResultMsg(String resultMsg) {
		this.resultMsg = resultMsg;
	}
}
